public class Test1 {
    public static void main(String[] args) {
        int[] array = {50 , 33 , 41 , 22 , 15 , 29 , 8 , 12 , 46};
        MyHeap myHeap = new MyHeap();
        myHeap.initHeap(array);
        myHeap.createHeap();
        myHeap.display();
        myHeap.offer(45);
        myHeap.display();
        System.out.println(myHeap.poll());
        myHeap.display();
    }
}
